package edu.yuhf.service;

import java.util.List;

import edu.yuhf.dao.PermissionJdbcDaoImpl;
import edu.yuhf.dao.iface.PermissionDao;
import edu.yuhf.domain.Permission;
import edu.yuhf.service.iface.PermissionService;

public class PermissionServiceImpl implements PermissionService {

	private PermissionDao permissionDao=new PermissionJdbcDaoImpl();
	@Override
	public List<Permission> showPermissionAll() {
		return permissionDao.getPermissionAll();
	}

	public List<Permission> showPermissionByUser(int userId) {
		return permissionDao.getPermissionByUser(userId);
	}
}
